<?php
    
    class Message extends Index{
    	
		public function __construct(){
			parent::__construct();
		}
		
		public function Index(){
			
		}
		
		public function AddMessage(){
			$message = array();
			$message['uid']     = $_SESSION['uid'];
			$message['datetime']= date('Y-m-d H:i:s');
			$message['con']     = $_POST['msgcon'];
			$message['sign']    = '0';
			if(DB::insert("ntwt_message", $message)){
				$this->showmessage("谢谢您的留言","?m=Index/Index" ,2000, "返回首页");
			}
			$this->showmessage("留言失败","goback" ,2000, "返回首页");
		}
		
    }











?>